package com.xdap.pg.exam.entity;

import com.definesys.mpaas.query.annotation.Column;
import com.definesys.mpaas.query.annotation.Style;
import com.definesys.mpaas.query.annotation.Table;

import java.util.Date;
import java.util.Objects;

@Table("sampling_record")
@Style(Upper2Underline = true)
public class SamplingRecord extends AbstractBasePojo implements java.io.Serializable {

    private static final long serialVersionUID = 7572043921524165976L;
    /**
     * 抽题日期
     */
    @Column("sampling_date")
    private Date samplingDate;

    /**
     * 抽题人
     */
    @Column("sampling_owner")
    private String samplingOwner;

    /**
     * Site Name
     */
    @Column("samplingSiteName")
    private String sampling_site_name;

    /**
     * Area
     */
    @Column("sampling_area")
    private String samplingArea;

    /**
     * 填写环境
     */
    @Column("sampling_environment")
    private String samplingEnvironment;

    /**
     * Type
     */
    @Column("sampling_type")
    private String samplingType;

    /**
     * quality题目数量
     */
    @Column("sampling_quality_number")
    private Double samplingQualityNumber;

    /**
     * quality抽题百分比
     */
    @Column("sampling_quality_percent")
    private Double samplingQualityPercent;

    /**
     * Stewardship题目数量
     */
    @Column("sampling_stewardship_number")
    private Double sampling_stewardship_number;

    /**
     * stewardship抽题百分比
     */
    @Column("sampling_stewardship_percent")
    private Double samplingStewardshipPercent;

    /**
     * quality数量占比
     */
    @Column("sampling_quality_Proportion")
    private Double samplingQualityProportion;

    /**
     * stewardship答题占比
     */
    @Column("stewardship_Proportion")
    private Double stewardshipProportion;

    /**
     * 抽题版本
     */
    @Column("sampling_version")
    private String samplingVersion;

    public SamplingRecord() {
    }

    public Date getSamplingDate() {
        return samplingDate;
    }

    public void setSamplingDate(Date samplingDate) {
        this.samplingDate = samplingDate;
    }

    public String getSamplingOwner() {
        return samplingOwner;
    }

    public void setSamplingOwner(String samplingOwner) {
        this.samplingOwner = samplingOwner;
    }

    public String getSampling_site_name() {
        return sampling_site_name;
    }

    public void setSampling_site_name(String sampling_site_name) {
        this.sampling_site_name = sampling_site_name;
    }

    public String getSamplingArea() {
        return samplingArea;
    }

    public void setSamplingArea(String samplingArea) {
        this.samplingArea = samplingArea;
    }

    public String getSamplingEnvironment() {
        return samplingEnvironment;
    }

    public void setSamplingEnvironment(String samplingEnvironment) {
        this.samplingEnvironment = samplingEnvironment;
    }

    public String getSamplingType() {
        return samplingType;
    }

    public void setSamplingType(String samplingType) {
        this.samplingType = samplingType;
    }

    public Double getSamplingQualityNumber() {
        return samplingQualityNumber;
    }

    public void setSamplingQualityNumber(Double samplingQualityNumber) {
        this.samplingQualityNumber = samplingQualityNumber;
    }

    public Double getSamplingQualityPercent() {
        return samplingQualityPercent;
    }

    public void setSamplingQualityPercent(Double samplingQualityPercent) {
        this.samplingQualityPercent = samplingQualityPercent;
    }

    public Double getSampling_stewardship_number() {
        return sampling_stewardship_number;
    }

    public void setSampling_stewardship_number(Double sampling_stewardship_number) {
        this.sampling_stewardship_number = sampling_stewardship_number;
    }

    public Double getSamplingStewardshipPercent() {
        return samplingStewardshipPercent;
    }

    public void setSamplingStewardshipPercent(Double samplingStewardshipPercent) {
        this.samplingStewardshipPercent = samplingStewardshipPercent;
    }

    public Double getSamplingQualityProportion() {
        return samplingQualityProportion;
    }

    public void setSamplingQualityProportion(Double samplingQualityProportion) {
        this.samplingQualityProportion = samplingQualityProportion;
    }

    public Double getStewardshipProportion() {
        return stewardshipProportion;
    }

    public void setStewardshipProportion(Double stewardshipProportion) {
        this.stewardshipProportion = stewardshipProportion;
    }

    public String getSamplingVersion() {
        return samplingVersion;
    }

    public void setSamplingVersion(String samplingVersion) {
        this.samplingVersion = samplingVersion;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SamplingRecord that = (SamplingRecord) o;
        return Objects.equals(samplingDate, that.samplingDate) && Objects.equals(samplingOwner, that.samplingOwner) && Objects.equals(sampling_site_name, that.sampling_site_name) && Objects.equals(samplingArea, that.samplingArea) && Objects.equals(samplingEnvironment, that.samplingEnvironment) && Objects.equals(samplingType, that.samplingType) && Objects.equals(samplingQualityNumber, that.samplingQualityNumber) && Objects.equals(samplingQualityPercent, that.samplingQualityPercent) && Objects.equals(sampling_stewardship_number, that.sampling_stewardship_number) && Objects.equals(samplingStewardshipPercent, that.samplingStewardshipPercent) && Objects.equals(samplingQualityProportion, that.samplingQualityProportion) && Objects.equals(stewardshipProportion, that.stewardshipProportion) && Objects.equals(samplingVersion, that.samplingVersion);
    }

    @Override
    public int hashCode() {
        return Objects.hash(samplingDate, samplingOwner, sampling_site_name, samplingArea, samplingEnvironment, samplingType, samplingQualityNumber, samplingQualityPercent, sampling_stewardship_number, samplingStewardshipPercent, samplingQualityProportion, stewardshipProportion, samplingVersion);
    }


}
